﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace EasyDocFlow.Web.Models
{
    public class RegisterModel
    {
        [Required(ErrorMessage = "UserName cannot be blank.")]
        public string UserName { get; set; }

        [Required(ErrorMessage = "UserName cannot be blank.")]
        [DataType(DataType.EmailAddress, ErrorMessage = "Incorrect format.")]
        public string Email { get; set; }

        [Required(ErrorMessage = "UserName cannot be blank.")]
        [StringLength(100, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 6)]
        [DataType(DataType.Password)]
        public string Password { get; set; }

        [DataType(DataType.Password)]
        [Compare("Password", ErrorMessage = "The password and confirmation password do not match.")]
        public string ConfirmPassword { get; set; }
    }
}